/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.supinfo.youfood.service;

import com.supinfo.youfood.dao.RestaurantDao;
import com.supinfo.youfood.entity.Restaurant;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author TaKeO
 */
@Stateless
public class RestaurantService {
    
    @EJB
    private RestaurantDao restoDao;
    
    public Restaurant findRestoById(Long id)
    {
        return restoDao.findRestoById(id);
    }
    
    public List<Restaurant> getAllResto()
    {
        return restoDao.getAllResto();
    }
    
    public void refreshResto(Restaurant resto)
    {
        restoDao.refreshResto(resto);
    }
    
    public Restaurant addResto(Restaurant resto)
    {
        return restoDao.addResto(resto);
    }
}
